//
//  HEATTextAttachment.m
//  HealthFamily
//
//  Created by 吴欧 on 2021/2/8.
//  Copyright © 2021 honglutec. All rights reserved.
//

#import "HEATTextAttachment.h"

@implementation HEATTextAttachment

//根据自己的字体大小需求微调
- (CGRect)attachmentBoundsForTextContainer:(NSTextContainer *)textContainer proposedLineFragment:(CGRect)lineFrag glyphPosition:(CGPoint)position characterIndex:(NSUInteger)charIndex {
    return CGRectMake(0, -3, _imageSize.width, _imageSize.height);
}

@end
